package com.whz.gateway.configure.access.admin;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

import java.util.Collections;
import java.util.List;

/**
 * 特殊用户,的特殊处理
 *
 * @author whz
 */
@Data
@RefreshScope
@ConfigurationProperties(prefix = "gateway.permissions.admin")
public class AdminAccessProperties {
    /**
     * 是否启用admin过滤功能
     */
    private boolean enable = true;

    /**
     * admin用户白名单IP
     */
    private List<String> whiteIp = Collections.singletonList("58.34.216.26");


    /**
     * admin角色
     */
    private List<String> roles = Collections.singletonList("ADMIN");
}